]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
messageTray: Handle 'popup-menu' signal on summary items
authorFlorian Müllner <fmuellner@gnome.org>
Wed, 22 Aug 2012 14:48:55 +0000 (16:48 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Wed, 22 Aug 2012 19:00:52 +0000 (21:00 +0200)
Now that the message-tray is key navigable, we should enable
triggering the right-click menu by keyboard shortcut as well.

https://bugzilla.gnome.org/show_bug.cgi?id=682486

js/ui/messageTray.js

index 7d9afb7bb062dc81c8b9fab8ef8c86f81dce1b52..a18e73501f6a2a2d452e991490accfa6fb88d23f 100644 (file)
@@ -1578,10 +1578,15 @@ const MessageTray = new Lang.Class({
             }));
 
         summaryItem.actor.connect('clicked', Lang.bind(this,
-            function (actor, button) {
+            function(actor, button) {
                 actor.grab_key_focus();
                 this._onSummaryItemClicked(summaryItem, button);
             }));
+        summaryItem.actor.connect('popup-menu', Lang.bind(this,
+            function(actor, button) {
+                actor.grab_key_focus();
+                this._onSummaryItemClicked(summaryItem, 3);
+            }));
 
         source.connect('destroy', Lang.bind(this, this._onSourceDestroy));